module.exports = {
    devtool: 'source-map',
    entry: __dirname + "/app/main.js",
    output: {
        path:__dirname + "/public",
        filename: "bundle.js"
    },
   module: {
       loaders: [
           {
               test: /\.(js|css)$/,
               exclude: /node_modules/,
               loader: "remove-comments-loader"
           }
       ]
   },
    
    devServer: {
        contentBase: "./public",//本地服务器所加载的页面所在的目录
        port: "9000",
        historyApiFallback: true,//不跳转
        inline: true//实时刷新
    } 
}